import EventRoute from "./EventRoute"
import SystemGlobalService from "../service/SystemGlobalService";

const routes = new Array();
const systemGlobalService = new SystemGlobalService();
/**
 * 会员分页
 */
routes.push(
    new EventRoute('app-global-get', 'event', async (api, data = {}) => {
        systemGlobalService.get()
    })
)

/**
 * 会员添加
 */
routes.push(
    new EventRoute('app-global-save', 'event', async (api, data = {}) => {
        systemGlobalService.save(data.data)
    })
)

export default routes;
